# Author:	gong_libin
# Date:		2014_08_20

GT_LIBS =					\
	-L$(GT_GLIB) -lgtglobal			\
	-L$(GT_GLIB) -lpthread

GT_OBJS =					\
	GtDrRecv.o				\
	GtDrStat.o

GT_TGTS =					\
	GtDrRecv				\
	GtDrStat

all: $(GT_OBJS) $(GT_TGTS) install

$(GT_OBJS): %.o: %.cpp
	$(CC) -c $(CFLAGS) -I$(GT_INC) -I$(GT_GINC) $< -o $@

$(GT_TGTS): %: %.o
	$(CC) $(CFLAGS) $< -o $@ $(GT_LIBS)

install:
	cp $(GT_TGTS) $(GT_BIN)
	rm -fr $(GT_OBJS)

clean:
	rm -rf $(GT_TGTS)
